
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>zookeeper01概述 · Zookeeper</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="<yangxin19970404@163.com>">
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="zookeeper02数据模型.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2" data-path="zookeeper01概述.html">
            
                <a href="zookeeper01概述.html">
            
                    
                    zookeeper01概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="zookeeper02数据模型.html">
            
                <a href="zookeeper02数据模型.html">
            
                    
                    zookeeper02数据模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="zookeeper03单机安装.html">
            
                <a href="zookeeper03单机安装.html">
            
                    
                    zookeeper03单机安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="zookeeper04新增节点.html">
            
                <a href="zookeeper04新增节点.html">
            
                    
                    zookeeper04新增节点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="zookeeper05操作节点.html">
            
                <a href="zookeeper05操作节点.html">
            
                    
                    zookeeper05操作节点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="zookeeper06监听器.html">
            
                <a href="zookeeper06监听器.html">
            
                    
                    zookeeper06监听器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="zookeeper07acl权限控制.html">
            
                <a href="zookeeper07acl权限控制.html">
            
                    
                    zookeeper07acl权限控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="zookeeper08javaApi连接zookeeper.html">
            
                <a href="zookeeper08javaApi连接zookeeper.html">
            
                    
                    zookeeper08javaApi连接zookeeper
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="zookeeper09事件监听机制watcher.html">
            
                <a href="zookeeper09事件监听机制watcher.html">
            
                    
                    zookeeper09事件监听机制watcher
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >zookeeper01概述</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h4 id="zookeeper&#x6982;&#x8FF0;">Zookeeper&#x6982;&#x8FF0;</h4>
<ul>
<li><p><strong>Zookeeper&#x4ECE;&#x8BBE;&#x8BA1;&#x6A21;&#x5F0F;&#x89D2;&#x5EA6;&#x6765;&#x7406;&#x89E3;,&#x662F;&#x4E00;&#x4E2A;&#x57FA;&#x4E8E;&#x89C2;&#x5BDF;&#x8005;&#x6A21;&#x5F0F;&#x8BBE;&#x8BA1;&#x7684;&#x5206;&#x5E03;&#x5F0F;&#x670D;&#x52A1;&#x7BA1;&#x7406;&#x6846;&#x67B6;,&#x5B83;&#x8D1F;&#x8D23;&#x5B58;&#x50A8;&#x548C;&#x7BA1;&#x7406;&#x5927;&#x5BB6;&#x90FD;&#x5173;&#x5FC3;&#x7684;&#x6570;&#x636E;,&#x7136;&#x540E;&#x63A5;&#x53D7;&#x89C2;&#x5BDF;&#x8005;&#x7684;&#x6CE8;&#x518C;,&#x4E00;&#x65E6;&#x8FD9;&#x4E9B;&#x6570;&#x636E;&#x7684;&#x72B6;&#x6001;&#x53D1;&#x751F;&#x6539;&#x53D8;,Zookeeper&#x5C31;&#x8D1F;&#x8D23;&#x901A;&#x77E5;&#x5DF2;&#x7ECF;&#x5728;Zookeeper&#x4E0A;&#x6CE8;&#x518C;&#x7684;&#x90A3;&#x4E9B;&#x89C2;&#x5BDF;&#x8005;&#x505A;&#x51FA;&#x76F8;&#x5E94;&#x53CD;&#x5E94;.</strong></p>
</li>
<li><p>&#x5B58;&#x6570;&#x636E;,&#x901A;&#x77E5;</p>
</li>
</ul>
<h3 id="&#x5206;&#x5E03;&#x5F0F;&#x9501;&#x670D;&#x52A1;">&#x5206;&#x5E03;&#x5F0F;&#x9501;&#x670D;&#x52A1;</h3>
<pre><code>&#x4E00;&#x4E2A;&#x96C6;&#x7FA4;&#x662F;&#x4E00;&#x4E2A;&#x5206;&#x5E03;&#x5F0F;&#x7CFB;&#x7EDF;,&#x7531;&#x591A;&#x4E2A;&#x670D;&#x52A1;&#x5668;&#x7EC4;&#x6210;,&#x4E3A;&#x4E86;&#x63D0;&#x9AD8;&#x5E76;&#x53D1;&#x6027;&#x548C;&#x53EF;&#x9760;&#x6027;,&#x591A;&#x53F0;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x8FD0;&#x884C;&#x8FD9;&#x540C;&#x4E00;&#x79CD;&#x670D;&#x52A1;.&#x5F53;&#x591A;&#x4E2A;&#x670D;&#x52A1;&#x5728;&#x8FD0;&#x884C;&#x65F6;&#x5C31;&#x9700;&#x8981;&#x534F;&#x8C03;&#x5404;&#x670D;&#x52A1;&#x7684;&#x8FDB;&#x5EA6;,&#x6709;&#x65F6;&#x5019;&#x9700;&#x8981;&#x4FDD;&#x8BC1;&#x5F53;&#x67D0;&#x4E2A;&#x64CD;&#x4F5C;&#x65F6;,&#x5176;&#x4ED6;&#x7684;&#x670D;&#x52A1;&#x90FD;&#x4E0D;&#x80FD;&#x8FDB;&#x884C;&#x8BE5;&#x64CD;&#x4F5C;,&#x5373;&#x5BF9;&#x8BE5;&#x64CD;&#x4F5C;&#x8FDB;&#x884C;&#x52A0;&#x9501;,&#x5982;&#x679C;&#x5F53;&#x524D;&#x673A;&#x5668;&#x6302;&#x6389;&#x540E;,&#x91CA;&#x653E;&#x9501;&#x5E76;fail over &#x5230;&#x5176;&#x4ED6;&#x673A;&#x5668;&#x7EE7;&#x7EED;&#x6267;&#x884C;&#x8BE5;&#x4EFB;&#x52A1;.
</code></pre><h3 id="zookeeper&#x96C6;&#x7FA4;&#x7279;&#x70B9;">Zookeeper&#x96C6;&#x7FA4;&#x7279;&#x70B9;</h3>
<p><img src="./imgs/&#x5FAE;&#x4FE1;&#x622A;&#x56FE;_20210325151523.png" alt=""></p>
<ul>
<li>zookeeper: &#x4E00;&#x4E2A;&#x9886;&#x5BFC;&#x8005;(Leader),&#x591A;&#x4E2A;&#x8DDF;&#x968F;&#x8005;(Follower)&#x7EC4;&#x6210;&#x7684;&#x96C6;&#x7FA4;.</li>
<li><strong>&#x96C6;&#x7FA4;&#x4E2D;&#x53EA;&#x8981;&#x6709;&#x534A;&#x6570;&#x4EE5;&#x4E0A;&#x8282;&#x70B9;&#x5B58;&#x6D3B;,zookeeper&#x96C6;&#x7FA4;&#x5C31;&#x80FD;&#x6B63;&#x5E38;&#x670D;&#x52A1;</strong></li>
<li>&#x5168;&#x5C40;&#x6570;&#x636E;&#x4E00;&#x81F4;: &#x6BCF;&#x4E2A;server&#x4FDD;&#x5B58;&#x4E00;&#x4EFD;&#x76F8;&#x540C;&#x7684;&#x6570;&#x636E;&#x526F;&#x672C;,Client&#x65E0;&#x8BBA;&#x8FDE;&#x63A5;&#x5230;&#x90A3;&#x4E2A;Server,&#x6570;&#x636E;&#x90FD;&#x662F;&#x4E00;&#x81F4;&#x7684;</li>
<li>&#x66F4;&#x65B0;&#x8BF7;&#x6C42;&#x987A;&#x5E8F;&#x8FDB;&#x884C;,&#x6765;&#x81EA;&#x540C;&#x4E00;&#x4E2A;Client&#x7684;&#x66F4;&#x65B0;&#x7684;&#x8BF7;&#x6C42;&#x6309;&#x5176;&#x53D1;&#x9001;&#x7684;&#x987A;&#x5E8F;&#x4F9D;&#x6B21;&#x6267;&#x884C;.</li>
<li>&#x66F4;&#x7EC6;&#x5E74;&#x6570;&#x636E;&#x539F;&#x5B50;&#x6027;,&#x4F9D;&#x6B21;&#x6570;&#x636E;&#x66F4;&#x65B0;&#x8981;&#x4E48;&#x6210;&#x529F;,&#x8981;&#x4E48;&#x5931;&#x8D25;.</li>
<li>&#x5B9E;&#x65F6;&#x6027;: &#x5728;&#x4E00;&#x5B9A;&#x8303;&#x56F4;&#x5185;,Client&#x80FD;&#x8BFB;&#x5230;&#x6700;&#x65B0;&#x6570;&#x636E;</li>
</ul>
<h3 id="&#x751F;&#x6210;&#x5206;&#x5E03;&#x5F0F;&#x552F;&#x4E00;id">&#x751F;&#x6210;&#x5206;&#x5E03;&#x5F0F;&#x552F;&#x4E00;id</h3>
<p><img src="./imgs/&#x5FAE;&#x4FE1;&#x622A;&#x56FE;_20210325201704.png" alt=""></p>
<p><strong>&#x9AD8;&#x6027;&#x80FD;,&#x9AD8;&#x53EF;&#x7528;,&#x4E25;&#x683C;&#x987A;&#x5E8F;&#x8BBF;&#x95EE;</strong></p>
<blockquote>
<p>&#x6570;&#x636E;&#x7ED3;&#x6784;</p>
</blockquote>
<p>Zookeeper&#x6570;&#x636E;&#x6A21;&#x578B;&#x7684;&#x7ED3;&#x6784;&#x4E0E;Unix&#x6587;&#x4EF6;&#x7CFB;&#x7EDF;&#x5F88;&#x76F8;&#x4F3C;,&#x6574;&#x4F53;&#x53EF;&#x4EE5;&#x770B;&#x505A;&#x4E00;&#x68F5;&#x6811;,&#x6BCF;&#x4E2A;&#x8282;&#x70B9;&#x4E58;&#x5750;&#x4E00;&#x4E2A;Znode.&#x6BCF;&#x4E00;&#x4E2A;Znode&#x9ED8;&#x8BA4;&#x80FD;&#x591F;&#x5B58;&#x50A8;1MB&#x7684;&#x6570;&#x636E;,&#x6BCF;&#x4E2A;Znode&#x90FD;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x5176;&#x8DEF;&#x5F84;&#x552F;&#x4E00;&#x6807;&#x8BC6;</p>
<p><img src="./imgs/&#x5FAE;&#x4FE1;&#x622A;&#x56FE;_20210325151947.png" alt=""></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: Introduction">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="zookeeper02数据模型.html" class="navigation navigation-next " aria-label="Next page: zookeeper02数据模型">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"zookeeper01概述","level":"1.2","depth":1,"next":{"title":"zookeeper02数据模型","level":"1.3","depth":1,"path":"zookeeper02数据模型.md","ref":"zookeeper02数据模型.md","articles":[]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"<yangxin19970404@163.com>","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Zookeeper","language":"zh-hans","gitbook":"3.2.3","description":"Zookeeper > 分布式服务管理框架"},"file":{"path":"zookeeper01概述.md","mtime":"2021-03-25T12:19:09.010Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-04-17T08:10:28.423Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

